package com.starlink.model.dtomapper;

import com.starlink.model.domain.ShoppingCartOrderDetailsDO;
import com.starlink.model.request.ShoppingCartOrderDetailsRequest;
import com.starlink.model.vo.ShoppingCartOrderDetailsVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author zhanghong
 */
@Mapper(componentModel = "spring")
public interface ShoppingCartOrderDetailsDtoMapper {

    ShoppingCartOrderDetailsDtoMapper INSTANCE = Mappers.getMapper(ShoppingCartOrderDetailsDtoMapper.class);

    /**
    * DO to VO
    * @param shoppingCartOrderDetailsDO
    * @return
    */
    ShoppingCartOrderDetailsVO do2VO(ShoppingCartOrderDetailsDO shoppingCartOrderDetailsDO);

    /**
     * request to DO
     * @param request
     * @return
     */
    ShoppingCartOrderDetailsDO request2DO(ShoppingCartOrderDetailsRequest request);
}
